<template>
  <div class="about">
    <h1>This is an about page</h1>
    <h2 @click="toMain">to main about</h2>
  </div>
</template>
<script>
export default {
  created(){
    console.log(this.$route);
  },
  methods: {
    toMain(){
      // console.log(window.mainRouter.app.$router.push(
      //   {name: 'About'}
      // ));
      this.$router.push('/about', function(){
        console.log('as');
      })
      
    }
  },
}
</script>
